<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<%--    获取登录失败的提示信息--%>
<%--<%--%>
<%--   //java 代码--%>
<%--   String info =(String) request.getAttribute("info");--%>
<%--%>--%>

    <h1>登录</h1>
    <form action="${pageContext.request.contextPath}/user?method=login" method="post">

        <p><input type="text" name="username" placeholder="请输入用户名"></p>
        <p><input type="password" name="password" placeholder="请输入密码"></p>
        <p><input type="submit" value="立即登录"></p>
    </form>
    <span style="color: red">${info}</span>
</body>
</html>
